home *** CD-ROM | disk | FTP | other *** search
/ Amiga Game-Power / Amiga Game-Power.iso / pd mix ii / access / backup / readme < prev    next >
Text File  |  1994-05-20  |  4KB  |  122 lines

  1. A SIMPLE BACKUP PROGRAM
  2. =======================
  3.  
  4. This is a very simple backup up program that I use to backup
  5. my hard disk. Its not perfect, but I find it very useful.
  6. The following description may not be very clear, but at the
  7. end there are some examples of how I use it.
  8.  
  9. This program is different from many other backup programs in that the
  10. destination disk is just a normal AmigaDOS disk with directories
  11. etc. To recover files, you just copy from the backup disk.
  12.  
  13. Rather than for every backup copying the whole disk, this program
  14. creates a file called .backup on the backup disk which it uses
  15. as a date stamp. During the backup, it scans the source disk
  16. for any file newer than the .backup file. If the program does
  17. not find a .backup file, it complains. This is so that non-backup
  18. disks are accidently destroyed. This program will delete any files
  19. on the backup disk that do not appear on the origninal.
  20. To do the first backup (ie. copy whole disk and create .backup),
  21. use the -f option which will create the first .backup file.
  22.  
  23. This backup utility does NOT do any clever stuff to work out how
  24. much will fit on a backup disk. To backup my hard disk I manually
  25. decide which sub-directories will go onto which backup disk.
  26. Note that this program does scan all subdirectories on the source
  27. disk so if you try "backup dh0: df0:" it will try and put the
  28. whole of dh0: onto df0:. I actually have two hard disk partitions
  29. for my source code and backup it all up every night using
  30. "backup dh0: dh1:". I do floppy backups once a week or so.
  31. This is very disk expensive, but pretty quick.
  32.  
  33. I can put several hard disk directories on each backup disk.
  34. Since I do this a lot, I added a feature so that it looks for
  35. the file .dobackup on the backup disk. If found, it takes the
  36. contents of the file as a series of parameters to the backup command.
  37. In this case, you only need to specify the backup disk or drive name
  38. (eg: "backup df0:") and does the rest for you.
  39.  
  40. Example of use
  41. ==============
  42.  
  43. Say I have four directories dh0:bin dh0:src/prog1 and dh0:src/prog2
  44. and dh0:src/prog3. Assume that dh0:src/prog3 is so big it needs its
  45. own floppy disk. The first three directories however will all fit
  46. on a single disk.
  47.  
  48. First take two disks and format them with the AmigaDOS format command.
  49. I try to name them with meaningful names - here I will use
  50. backup-bin-src: and backup-prog3:
  51.  
  52. Make subdirectories on the backup disks for each source directory. eg:
  53.  
  54.     makedir backup-bin-src:bin
  55.     makedir backup-bin-src:prog1
  56.     makedir backup-bin-src:prog2
  57. swap disks
  58.     makedir backup-prog3:prog3
  59.  
  60. There are then two ways of using the backup command.
  61. First, the long way...
  62.  
  63. To perform the inital backup enter
  64.  
  65.     backup -f dh0:bin backup-bin-src:bin
  66.     backup -f dh0:src/prog1 backup-bin-src:prog1
  67.     backup -f dh0:src/prog2 backup-bin-src:prog2
  68. swap disks
  69.     backup -f dh0:src/prog2 backup-prog3:prog2
  70.  
  71. This will take quite a long time as it has to copy everything.
  72. For later backups, use
  73.  
  74.     backup dh0:bin backup-bin-src:bin
  75.     backup dh0:src/prog1 backup-bin-src:prog1
  76.     backup dh0:src/prog2 backup-bin-src:prog2
  77. swap disks
  78.     backup dh0:src/prog2 backup-prog3:prog2
  79.  
  80. This however requires a lot of typing and is prone to errors.
  81. A better way is as follows:
  82.  
  83. Do the formats and makedir's as above, but then create the file
  84. .dobackup on the backup disk (in the root directory)
  85.  
  86. ie: in "backup-bin-src:.dobackup" put (using your favorite editor)
  87.  
  88.     dh0:bin backup-bin-src:bin
  89.     dh0:src/prog1 backup-bin-src:prog1
  90.     dh0:src/prog2 backup-bin-src:prog2
  91.  
  92. In "backup-prog3:.dobackup" put
  93.  
  94.     dh0:src/prog3 backup-prog3:prog3
  95.  
  96. I strongly advise using full disk names rather than the drive name (df0:)
  97. in the .dobackup file so it does not matter what disk you insert where.
  98.  
  99. For the first format, insert the first backup disk (eg drive df0:)
  100. and type
  101.  
  102.     backup -f df0:
  103.  
  104. It will find the .dobackup file and do everything.
  105. Swap disks and repeat for the second backup disk.
  106.  
  107. For later backups, just insert each backup disk and type
  108.  
  109.     backup df0:
  110.  
  111. and sit back and watch!
  112. To back up my whole hard disk simply involves inserting my series of
  113. backup disks one after the other in any order and typing "backup df0:"
  114. for each (of course I use a shell which can quickly repeat the last
  115. command). I have the occasional problem when a disk overflows or I
  116. create new directories but by organising my hard disk properly and
  117. keeping a large amount of free space on each backup disk all goes well.
  118.  
  119. Well, I hope its of some use.
  120.  
  121.             -- Alan Kent
  122.